package com.sykj.springboot.test.designMode.Observer3;

public class main {


    public static void main(String[] args) {
        Lisi lisi = new Lisi();
        Liusi liusi = new Liusi();

        Hanfeizi hanfeizi = new Hanfeizi();
        hanfeizi.addObserver(lisi);
        hanfeizi.addObserver(liusi);


        hanfeizi.haveBreakFast();
        hanfeizi.haveFun();

    }





}
